<?php
('Access-Control-Allow-Origin：*');
include("../config/mysql.php");
$id = $_POST["id"];
$file_name = $_POST["file_name"];
$delete_state = unlink("D:/wwwroot/127.0.0.1/mobileManage/upload/" . $file_name);
if ($delete_state) {
    $db = new mysql();
    $sql = "DELETE FROM files WHERE id='{$id}'";
    echo $db->Query($sql);
    $db->close();
} else {
    echo "DELETE FILE ERROR";
}
